package com.yw.common.core.db.dao.proxy;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.yw.common.core.db.dao.entity.IPo;
import com.yw.common.core.db.dao.impl.IUpdateDaoImpl;

/**
 * 数据库更新dao代理抽象类
 * @author aoshiguchen
 * @time 2015-12-03
 */

public abstract class AbstractUpdateDaoProxy implements IUpdateDaoProxy{
	
	protected IUpdateDaoImpl impl;
	
	public AbstractUpdateDaoProxy(IUpdateDaoImpl impl){
		this.impl = impl;
	}

	@Override
	public boolean update(IPo po, Set<String> filterField) {
		
		return this.impl.update(po, filterField);
	}

	@Override
	public boolean update(IPo po) {
		
		return this.impl.update(po);
	}

	@Override
	public IPo create(IPo po, Set<String> filterField) {
		
		return this.impl.create(po, filterField);
	}

	@Override
	public IPo create(IPo po) {
		
		return this.impl.create(po);
	}

	@Override
	public List<IPo> findAll() {
		
		return this.impl.findAll();
	}

	@Override
	public IPo findById(String id) {
		
		return this.impl.findById(id);
	}

	@Override
	public List<IPo> findMulti(IPo po, Set<String> filterField) {
		
		return this.impl.findMulti(po, filterField);
	}

	@Override
	public List<IPo> findMulti(IPo po) {
		
		return this.impl.findMulti(po);
	}

	@Override
	public IPo findSingle(IPo po, Set<String> filterField) {
		
		return this.impl.findSingle(po, filterField);
	}

	@Override
	public IPo findSingle(IPo po) {
		
		return this.impl.findSingle(po);
	}

	@Override
	public IPo findSingle(String id) {
		
		return this.impl.findSingle(id);
	}

	@Override
	public boolean delete(IPo po, Set<String> filterField) {
		
		return this.impl.delete(po, filterField);
	}

	@Override
	public boolean delete(IPo po) {
		
		return this.impl.delete(po);
	}

	@Override
	public boolean deleteById(String id) {
		
		return this.impl.deleteById(id);
	}
	
	@Override
	public Map<String, Class> getFieldSet() {
		
		return this.impl.getFieldSet();
	}
	
}
